/* 放公共样式 */


/*清除浏览器的默认样式*/
*{
 margin: 0;
 padding: 0;
 box-sizing: border-box;  
}
html{
    /* 设置html的高度与浏览器一样高 */
    height:100%;
}
body{
    /* 设置body的高度html标签一样高 */
    height:100%;
    
    background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.nav{
    /*导航栏高度普遍为50px*/
    height: 50px;
    /* 开启弹性布局,独占一行,去掉div带来的块级影响 */
    background-color: rgba(50, 50, 50, 0.4);
    color:white;
    display: flex;
    justify-content:flex-start;
    align-items:center; 
}

.nav img{
    width: 40px;
    height:40px;
    margin-left:30px;
    margin-right:10px;
    border-radius:20px;
}
.nav .spacer{
    /*宽度设置为百分比的形式*/
    width: 70%;
    height: 40px;
}
.nav a{
    color:white;
    text-decoration:none;
    padding: 0 10px;
}
.container{
    width:1000px;
    /* 水平居中 */
    margin: 0 auto;
    /* 设置高度 */
    height: calc(100% - 50px);
    display: flex;
    justify-content:space-between;
}
.container .container-left{
    height: 100%;
    width: 200px;
    /* background-color: rgb(128,0,0); */
}
.container .container-right{
    height: 100%;
    width: 796px;
    background-color: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 20px;

    /* 加滚动条 */
    overflow: auto;
}
.card{
    background-color: rgba(255, 255, 255, 0.8);
    /* 设置内边界,就是不让文字和图片不要顶着边界 */
    padding: 30px;
    border-radius:20px;
}
.card img{
    width: 140px;
    height: 140px;
    border-radius: 70px;
}
.card h3{
    text-align: center;
    padding: 10px;
}
.card a{
    display:block;
    text-align: center;
    color:#999;
    text-decoration: none;
    padding:10px;
}
.card .counter{
    display: flex;
    justify-content: space-around;
    padding: 5px;
}